<link href="__STATIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="__STATIC__/docs.css" rel="stylesheet" media="screen">
<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
<!-- 导航条
================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="brand active" href="{:U(GROUP_NAME . '/Index')}">
        <img style="height:20px;" src="__PUBLIC__/imgs/logo_2.png" alt="">
      </a>
      <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <!-- <a class="brand" href="./index.html">Bootstrap</a> -->
      <div class="nav-collapse collapse">
        <ul class="nav">
          <li>
            <a href="{:U(GROUP_NAME . '/Index')}">
              主页
            </a>
          </li>
          <li>
            <a href="{:U(GROUP_NAME . '/Circle/index')}">
              圈子
            </a>
          </li>
          <li>
            <a href="{:U(GROUP_NAME . '/Index/about')}">
              关于
            </a>
          </li>
        </ul>
        <ul class="nav pull-right">
        <li class="divider-vertical"></li>
          <if condition="$username"> 
            <li>
              <a href="" style="text-decoration: none;color:white;cursor:default;">{$username}</a>   
            </li>
            <li class="dropdown">
              <a class="dropdown-toggle"data-toggle="dropdown" href="#">
                  <i class='icon-cog icon-white'></i>
              </a>
              <ul class="dropdown-menu">
                <li><a href="{:U(GROUP_NAME . '/Person/index')}">个人中心</a></li>
                <!-- <li><a href="">修改密码</a></li> -->
                <li><a href="{:U(GROUP_NAME . '/Login/logout')}">注销</a></li>
              </ul>
            </li>
            <else />
            <li>
              <a href="{:U(GROUP_NAME . '/Login/index')}">
                登陆
              </a>
            </li>
            <li>
              <a href="{:U(GROUP_NAME . '/Login/register')}">
                注册
              </a>
            </li>
          </if>
        </ul>
      </div>
    </div>
  </div>
</div>